package cn.mrdear.controller;


import cn.mrdear.entity.DemoEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
    /**
     * 测试hello
     * @return
     */
    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public @ResponseBody
    DemoEntity hello(){
        DemoEntity entity = new DemoEntity();
        entity.setId("1");
        entity.setUsername("niuli ");
        entity.setPassword("123456");
        return entity;
    }
}